﻿<UserControl
	x:Class="UI.SettingsPanel.SettingsVisualStyleControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:properties="clr-namespace:SettingsAddIn.Properties"
    xmlns:wpf="clr-namespace:ViewOnCore.Helper.WPF;assembly=ViewOnCore">
	<StackPanel>
		<StackPanel Orientation="Horizontal" Margin="0,0,0,25">
			<Button x:Name="btnApplyNow" Margin="5,2,5,2" Style="{DynamicResource Button.TransparentWithEffect2}">
				<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
					<wpf:Icon Source="/_images/PartSettings/Apply.png" Width="18" Height="18"/>
					<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_ApplyNow}" Margin="5,0,5,0" VerticalAlignment="Center"/>
				</StackPanel>
			</Button>
			<Button x:Name="btnNew" Margin="5,2,5,2" Style="{DynamicResource Button.TransparentWithEffect2}">
				<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
					<wpf:Icon Source="/_images/PartSettings/open.png" Width="18" Height="18"/>
					<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_NewVisualPack}" Margin="5,0,5,0" VerticalAlignment="Center"/>
				</StackPanel>
			</Button>
			<Button x:Name="btnDelete" Margin="5,2,5,2" Style="{DynamicResource Button.TransparentWithEffect2}">
				<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
					<wpf:Icon Source="/_images/PartSettings/delete.png" Width="18" Height="18"/>
					<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_Delete}" Margin="5,0,5,0" VerticalAlignment="Center"/>
				</StackPanel>
			</Button>
			<Button x:Name="btnSave" Margin="5,2,5,2" Style="{DynamicResource Button.TransparentWithEffect2}">
				<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
					<wpf:Icon Source="/_images/PartSettings/save.png" Width="18" Height="18"/>
					<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_SaveVisualPack}" Margin="5,0,5,0" VerticalAlignment="Center"/>
				</StackPanel>
			</Button>
			<Button x:Name="btnOpen" Margin="5,2,5,2" Style="{DynamicResource Button.TransparentWithEffect2}">
				<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
					<wpf:Icon Source="/_images/PartSettings/open.png" Width="18" Height="18"/>
					<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_OpenVisualPack}" Margin="5,0,5,0" VerticalAlignment="Center"/>
					<ComboBox x:Name="cboOpen"></ComboBox>
				</StackPanel>
			</Button>
		</StackPanel>


		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="45"/>
				<RowDefinition Height="25"/>
				<RowDefinition Height="25"/>
				<RowDefinition Height="40"/>
				<RowDefinition Height="40"/>
				<RowDefinition Height="25"/>
				<RowDefinition Height="25"/>
				<RowDefinition Height="30"/>
				<RowDefinition Height="40"/>
				<RowDefinition Height="25"/>
				<RowDefinition Height="*"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="175"/>
				<ColumnDefinition Width="170"/>
				<ColumnDefinition Width="350"/>
			</Grid.ColumnDefinitions>

			<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_ColorScheme}" Grid.Row="0" Grid.Column="0" VerticalAlignment="Top"/>
			<wpf:ColorRangePicker x:Name="cssSelector" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center"/>

			<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_TextColor}" Grid.Row="1" Grid.Column="0"/>
			<StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1">
				<Rectangle x:Name="recColorText" Width="10" Height="10" Margin="2,2,2,2"/>
				<wpf:ColorPickerPopupButton x:Name="btnColorSelectorText" VerticalAlignment="Center"/>
			</StackPanel>

			<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_IconColor}" Grid.Row="2" Grid.Column="0"/>
			<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1">
				<Rectangle x:Name="recColorIcon" Width="10" Height="10" Margin="2,2,2,2"/>
				<wpf:ColorPickerPopupButton x:Name="btnColorSelectorIcon" VerticalAlignment="Center"/>
			</StackPanel>

			<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_Gradient1}" Grid.Row="3" Grid.Column="0"/>
			<wpf:GradientPicker x:Name="gpPicker1" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Left"/>

      <TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_Gradient2}" Grid.Row="4" Grid.Column="0"/>
      <wpf:GradientPicker x:Name="gpPicker2" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Left"/>


			<CheckBox x:Name="chkUseImageMode" Grid.Row="5" Grid.Column="0" VerticalAlignment="Bottom" Margin="0,0,0,5">
				<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_UseImageAsBackground}"/>
			</CheckBox>

			<Border Grid.Row="6" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="3" Background="{DynamicResource VOColor11}" CornerRadius="1" Opacity="0.5"/>

			<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_ImagePath}"  Margin="15,0,0,0" Grid.Row="6"  Grid.Column="0" VerticalAlignment="Center"/>
			<TextBox x:Name="txtImagePath" Text="" Width="300" Grid.Row="6" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" IsReadOnly="True" IsEnabled="False"/>
			<Button x:Name="btnBrowseImage" Margin="185,0,0,0" Grid.Row="6" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Left">
				...
			</Button>

			<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_UseAnimation}" Margin="15,0,0,0" Grid.Row="7" Grid.Column="0" VerticalAlignment="Center"/>
			<ComboBox x:Name="cboAnimation" Width="120" Grid.Row="7" Grid.Column="1" VerticalAlignment="Center"></ComboBox>

			<CheckBox x:Name="chkAdvancedMode" Grid.Row="8" Grid.Column="0" VerticalAlignment="Bottom" Margin="0,0,0,5">
				<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_AdvancedMode}"/>
			</CheckBox>

			<Border Grid.Row="9" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="3" Background="{DynamicResource VOColor11}" CornerRadius="1" Opacity="0.5"/>

			<TextBlock Text="{x:Static properties:Globalization.SettingsVisualStyleControl_XAMLCode}" Margin="15,0,0,0" Grid.Row="9" Grid.Column="0" VerticalAlignment="Center"/>
			<TextBox x:Name="txtXAML" Grid.Row="10" Margin="15,0,15,5" Grid.Column="0" Grid.ColumnSpan="3" AcceptsReturn="True" AcceptsTab="True" MinLines="10" ScrollViewer.CanContentScroll="True"/>
		</Grid>

	</StackPanel>
</UserControl>
